{% if is_record_menu %}
    {% for d in data %}
        <li class="list">
    <a href="{{ url_for('wechat.session_detail', student_id=student_id, session_id=d.session_id) }}">
      <span class="score {{ d.remark_class }}">{{ d.remark }}</span>
      <div class="right">
        <div class="name-date">
          <span class="name">爱丽丝小镇</span>
          <span class="date">{{ d.time[5:7] }}月{{ d.time[8:] }}日</span>
        </div>
        <div class="title">{{ d.number }}.{{ d.lesson }}</div>
      </div>
    </a>
    </li>
    {% endfor %}
{% else %}
    {% if course_map and course_map.startswith('evaluation') %}
        {% for d in sessions %}
            <li class="list" onclick="location.href='{{ url_for('wechat.finished', lesson_id=d.evaluation_id, course_map=course_map) }}'">
                <span class="result {{ d.remark_class }}">{{ d.remark }}</span>
                <div class="right">
                    <span class="date">{{ d.time[5:7] }}月{{ d.time[8:] }}日</span>
                    <span class="name_e" id="{{ d.evaluation_id }}">{{ d.map + d.evaluation }}</span>
                </div>
            </li>
        {% endfor %}
    {% else %}
        {% for d in data %}
            {% if d.lesson_id in ['rainbow', 'little_mushroom'] %}
                <li class="list hidde_lessons" onclick="location.href='{{ url_for('wechat.finished_first_two', lesson_id=d.lesson_id) }}'">
            {% else %}
                <li class="list" onclick="location.href='{{ url_for('wechat.finished', lesson_id=d.lesson_id, course_map=course_map) }}'">
            {% endif %}
              <span class="result {{ d.remark_class }}">{{ d.remark }}</span>
                <div class="right">
                  <span class="date">{{ d.time[5:7] }}月{{ d.time[8:] }}日</span>
                  <span class="name" id="{{ d.lesson_id }}">{{ d.minor if 'minor' in d else d.number }}.{{ d.lesson }}</span>
                </div>
              </li>
            {# {% if course_map=='map1' and loop.last and pagination.page == pagination.pages -%}
            <li class="list hidde_lessons" onclick="location.href='{{ url_for('wechat.finished_first_two', lesson_id='little_mushroom') }}'">
              <span class="result greate">优秀</span>
              <div class="right">
                <span class="date">{{ d.time[5:7] }}月{{ d.time[8:] }}日</span>
                <span class="name">2.跳舞的小蘑菇</span>
              </div>
            </li>
            <li class="list hidde_lessons" onclick="location.href='{{ url_for('wechat.finished_first_two', lesson_id='rainbow') }}'">
              <span class="result greate">优秀</span>
              <div class="right">
                <span class="date">{{ d.time[5:7] }}月{{ d.time[8:] }}日</span>
                <span class="name">1.彩虹</span>
              </div>
            </li>
            {%- endif %} #}
        {% endfor %}
    {% endif %}
{% endif %}
<span class="map_pages" style="display:none">{{ pagination.pages if pagination else 'none'}}</span>
